<template>
  <div>
     <van-nav-bar
      title="标题"
      left-text="返回"
      right-text="按钮"
      left-arrow
      @click-left="onClickLeft"
      
    />
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">home</van-tabbar-item>
      <van-tabbar-item icon="search" to="/hah">标签</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/friends">标签</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/cart">标签</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active:0
    };
  },
  methods:{
    onClickLeft(){
      this.$router.go(-1)
    }
  }
};
</script>
<style lang="scss" scoped>
</style>